package com.test.design.example2.abstractfactory.impl;

import com.test.design.example2.dto.MacButton;
import com.test.design.example2.dto.MacDialog;
import com.test.design.example2.dto.cxcp.Button;
import com.test.design.example2.dto.cxcp.Dialog;
import com.test.design.example2.abstractfactory.UIFactory;

/**
 * @program: design-patternz
 * @description: mac具体工厂(芊芊修改一下-master=11112221)
 * @author: <a href="mailto:zhengjiaming@gtmap.cn">zhengjiaming</a>
 * @create: 2024-12-26 11:47
 **/
public class MacFactory implements UIFactory {
    @Override
    public Button createButton() {
        MacButton macButton = new MacButton();
        macButton.setYs("棕色的");
        return macButton;
    }

    @Override
    public Dialog createDialog() {
        MacDialog macDialog = new MacDialog();
        macDialog.setWz("底部（2020）11(master)");
        return macDialog;
    }
}
